import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {NewsComponent} from "./news/news.component";
import {RankingComponent} from "./ranking/ranking.component";
import {UserComponent} from "./user/user.component";
import {RegisterComponent} from "./login/register.component";

const routes: Routes = [
  {
    path: '',
    component: NewsComponent
  },
  {
    path: 'news',
    component: NewsComponent
  },
  {
    path:'ranking',
    component: RankingComponent
  },
  {
    path:'user',
    component: UserComponent
  },
  {
    path:'login',
    component: RegisterComponent
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
